﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using QLNHDAO;

namespace QLNHBUS
{
    public class DonViBUS
    {
        public static List<DonVi> LayDanhSachDonVi()
        {
            DonViDAO dv = new DonViDAO();
            return dv.All().ToList();
        }

        public static DonVi LayDonVi(int id)
        {
            DonViDAO dvDAO = new DonViDAO();
            return dvDAO.GetByID(id);
        }
    }
}
